package com.jianqiao.information.sorts.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jianqiao.information.sorts.domain.SortsEntity;
import com.jianqiao.information.sorts.mapper.SortsMapper;
import com.jianqiao.information.sorts.service.SortsService;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SortsServiceImpl extends ServiceImpl<SortsMapper, SortsEntity> implements SortsService {

    @Autowired
    private SortsMapper sortsMapper;

    @Override
    public List<SortsEntity> getPage() {
        LambdaQueryWrapper<SortsEntity> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SortsEntity::getDelFlag ,1);
        List<SortsEntity> sortsList = sortsMapper.selectList(queryWrapper);
        return sortsList;
    }
}
